package com.ruoyi.luck.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * luckdraw对象 luc_mark_active
 *
 * @author ruoyi
 * @date 2023-01-29
 */
@TableName("luc_mark_active")
public class LucMarkActive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 营销名称 */
    @Excel(name = "营销名称")
    @TableField("name")
    private String name;

    /** 序号 */
    @Excel(name = "序号")
    @TableField("Serial_number")
    private Long serialNumber;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 显示位置 */
    @Excel(name = "显示位置")
    @TableField("location")
    private String location;

    /** banner图片 */
    @Excel(name = "banner图片")
    @TableField("banner_img")
    private String bannerImg;

    /** h5链接 */
    @Excel(name = "h5链接")
    @TableField("h5url")
    private String h5url;

    /** 活动开始时间开始  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间开始 ", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("started_time")
    private Date startedTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("end_time")
    private Date endTime;

    /** 活动规则 */
    @Excel(name = "活动规则")
    @TableField("activeRules")
    private String activerules;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("status")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSerialNumber(Long serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber()
    {
        return serialNumber;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setBannerImg(String bannerImg)
    {
        this.bannerImg = bannerImg;
    }

    public String getBannerImg()
    {
        return bannerImg;
    }
    public void setH5url(String h5url)
    {
        this.h5url = h5url;
    }

    public String getH5url()
    {
        return h5url;
    }
    public void setStartedTime(Date startedTime)
    {
        this.startedTime = startedTime;
    }

    public Date getStartedTime()
    {
        return startedTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setActiverules(String activerules)
    {
        this.activerules = activerules;
    }

    public String getActiverules()
    {
        return activerules;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("serialNumber", getSerialNumber())
            .append("createdTime", getCreatedTime())
            .append("location", getLocation())
            .append("bannerImg", getBannerImg())
            .append("h5url", getH5url())
            .append("startedTime", getStartedTime())
            .append("endTime", getEndTime())
            .append("activerules", getActiverules())
            .append("status", getStatus())
            .toString();
    }
}
